﻿//Morgan Hansen
//
//last update 3/29
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Controller
{
    class Command
    {
        private Nullable<byte> commandID;
        private VineyardBlock vineyardBlock;
        private CommandType commandType;
        private bool commandFlag;

        public Command(VineyardBlock block, CommandType type, byte id, bool flag)
        {
            commandID = id;
            vineyardBlock = block;
            commandFlag = flag;
            commandType = type;

        }
        //overloaded without flag
        public Command(VineyardBlock block, CommandType type, byte id)
        {
            commandID = id;
            vineyardBlock = block;
            commandFlag = false;
            commandType = type;

        }

        public bool GetCommandFlag()
        {
            return (commandFlag);
        }
        public bool SetCommandFlag(bool flag)
        {
            commandFlag = flag;
            return (true);//may need try and catch
        }
    }
}
